<%@ page language="java" contentType="text/html; charset=UTF-8" 
    pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content ="IE=8"/>
<title><fmt:message key="data.perspective" /></title>
<link rel="stylesheet" href="assets/ext/resources/css/ext-all.css"/>

<link rel="stylesheet" href="assets/ux/resources/css/qtip.css"/>
<link rel="stylesheet" href="assets/ux/resources/css/MultiSelect.css"/>

<link rel="stylesheet" href="resources/css/PictureAnalyze.css"/>
<link rel="stylesheet" href="resources/css/conditionfilter.css"/>

<script type="text/javascript" src="js/comm/jquery.js"></script>
<script type="text/javascript" src="assets/ext/ext-base.js"></script>
<script type="text/javascript" src="assets/ext/ext-all.js"></script>
<%
	String browserLang = request.getLocale().toString();
	String extLocalUrl="";
	//String urlParam = request.getQueryString(); //url地址后面带的参数
	String legendLang = ""; //图例语言
	/* if (urlParam != null) {
		browserLang = urlParam.substring(5, urlParam.length());
		if(!"en_US".equals(browserLang)){
			extLocalUrl="assets/ext/ext-lang-"+browserLang+".js";	
		}
		legendLang = browserLang.replace("_", "-");
	} else {
		extLocalUrl="assets/ext/ext-lang-"+browserLang+".js";
	}
	
	String language =(String)session.getAttribute("languageType");
	if(language!=null){
		browserLang=language;
	} */
	
	String language =(String)session.getAttribute("languageType");
	if (language != null) {
		browserLang=language;
		if(!"en_US".equals(browserLang)){
			extLocalUrl="assets/ext/ext-lang-"+browserLang+".js";	
		}
		legendLang = browserLang.replace("_", "-");
	} else {
		extLocalUrl="assets/ext/ext-lang-"+browserLang+".js";
	}
%> 
<%-- <script type="text/javascript" src="js/customs/messages-lang-<%=browserLang %>.js"></script>  --%>
<fmt:setLocale value="<%=browserLang %>"/> 
<%-- <fmt:setLocale value="<%=language %>"/> --%>
<fmt:setBundle basename="messages"/>
<%@include file="message_chart.jsp"%>
<script type="text/javascript" src="<%=extLocalUrl%>"></script>
<script type="text/javascript" src="assets/ux/gnamespace.js"></script>
<script type="text/javascript" src="assets/ux/tooltipplus.js"></script>
<script type="text/javascript" src="assets/ux/qtip.js"></script>
<script type="text/javascript" src="assets/ux/uxwidget.js"></script>
<script type="text/javascript" src="assets/ux/tooltipwindow.js"></script>
<!-- <script type="text/javascript" src="assets/ux/uxtree.js"></script> -->
<script type="text/javascript" src="assets/ux/MultiSelect.js"></script>
<script type="text/javascript" src="assets/ux/editpanel.js"></script>

<script type="text/javascript" src="assets/anychart/js/AnyChart.js"></script>  

<script type="text/javascript" src="js/customs/showtree.js"></script>
<script type="text/javascript" src="js/customs/columnpanel.js"></script>
<script type="text/javascript" src="js/customs/toolbars.js"></script>
<script type="text/javascript" src="js/customs/pictureanalyze.js"></script>
<script type="text/javascript" src="js/customs/conditionfilter.js"></script>

<fmt:setLocale value="<%=browserLang %>"/>

<script type="text/javascript">
    var pictureAnalyze = new biAnaly.PictureAnalays();
    Ext.onReady(pictureAnalyze.initLayout);
</script>
</head>
<body>
	<input type="hidden" name="myhidden" id="myhidden" value="<%=browserLang %>">
    <div id="pivotdiv" style="display:none"></div>
</body>